import request from '@/utils/request';
import { getPageSize } from '@/utils/common';
import { async } from 'q';

// 一、OCR信息
// 1、 查询OCR列表  
export async function selectOcrList(params) {
    params.pageSize = params.pageSize || getPageSize();
    return request(`/server/api/tms/tms-ocr-papers/selectOcrList`, {
        method: 'POST',
        body: params,
    });
}

// 2、 查询OCR详情
export async function ocrInfoDetail(params) {
    return request(`/server/api/tms/tms-ocr-papers/ocrInfo`, {
        method: 'POST',
        body: params,
    });
}

// 3、OCR审核
export async function auditOcr(params) {
    return request(`/server/api/tms/tms-ocr-papers/auditOcr`, {
        method: 'POST',
        body: params,
    });
}
//4、OCR提交
export async function commitOcr(params) {
    return request(`/server/api/tms/tms-ocr-papers/commitOcr`, {
        method: 'POST',
        body: params,
    });
}

//5、OCR删除
export async function deleteOcr(params) {
    return request(`/server/api/tms/tms-ocr-papers/deleteOcr`, {
        method: 'POST',
        body: params,
    });
}

// 二、OCR证件信息
// 1、 ocr证件列表
export async function ocrPapersList(params) {
    return request(`/server/api/tms/tms-ocr-papers/ocrPapersList`, {
        method: 'POST',
        body: params,
    });
}
// 2、OCR证件详情  
export async function ocrPapersInfo(params) {
    return request(`/server/api/tms/tms-ocr-papers/ocrPapersInfo`, {
        method: 'POST',
        body: params,
    });
}
//3、证件识别：  
export async function discernOcrPapers(params) {
    return request(`/server/api/tms/tms-ocr-papers/ocrPapers`, {
        method: 'POST',
        body: params,
    });
}
//4、保存证件 用户编辑的  
export async function saveOcrPapers(params) {
    return request(`/server/api/tms/tms-ocr-papers/saveOcrPapers`, {
        method: 'POST',
        body: params,
    });
}
// 5、OCR证件删除 
export async function delOcrPapers(params) {
    return request(`/server/api/tms/tms-ocr-papers/deleteOcrPapers`, {
        method: 'POST',
        body: params,
    });
}

/**
 * 查询附件
 */
export async function selectFileList(params) {
    return request(`/server/api/tms/attachment/selectFileList`, {
        method: 'POST',
        body: params,
    });
}
